/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package src.gladiatormanager;

import java.awt.Point;


public class Ruutu {
    private int xLocation, yLocation, kavelykustannus = 1;
    private Gladiaattori gladiaattori;
    
    public Ruutu(int x, int y) {
        xLocation = x;
        yLocation = y;
        gladiaattori = null;
    }
    
    public Ruutu() {
        xLocation = -1;
        yLocation = -1;
        gladiaattori = null;
    }
    
    public Ruutu(Ruutu ruutu) {
        xLocation = ruutu.getX();
        yLocation = ruutu.getY();
        gladiaattori = ruutu.getGladiaattori();
    }
    
    public void setX(int x) {
        xLocation = x;
    }
    
    public void setY(int y) {
        yLocation = y;
    }
    
    public void setLocation(int x, int y) {
        xLocation = x;
        yLocation = y;
    }
    
    public Point getLocation() {
        return new Point(xLocation, yLocation);
    }
    
    public int getX() {
        return xLocation;
    }
    
    public int getY() {
        return yLocation;
    }
    
    public boolean kaveltava() {
        return (gladiaattori == null);
    }
    
    public void setGladiaattori(Gladiaattori g) {
        gladiaattori = g;
    }
    
    public Gladiaattori getGladiaattori() {
        return gladiaattori;
    }
    
}
